package com.hl.controller.Login1;

import com.hl.domain.R;
import com.hl.domain.User;
import com.hl.service.LoginService;
import com.ruoyi.system.api.RemoteLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/login2")
public class LoginController {
    @Autowired
    private LoginService loginService;

//    private RemoteLogService remoteLogService;
    @RequestMapping("/login3")
    public R login(@RequestBody User user){
//        remoteLogService.saveLogininfor(user, "123");
    return loginService.login(user.getUsername(),user.getPassword());
    }
}
